import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import '../../common/app_text_style.dart';
import '../../widget/text/text_widget.dart';
import 'bottom_sheet_logic.dart';

class BottomSheetPage extends StatefulWidget {
  const BottomSheetPage({Key? key}) : super(key: key);

  @override
  State<BottomSheetPage> createState() => BottomSheetPageState();
}

class BottomSheetPageState extends State<BottomSheetPage> {
  final logic = Get.put(BottomSheetLogic());
  final state = Get.find<BottomSheetLogic>().state;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          backgroundColor: Theme.of(context).colorScheme.inversePrimary,
          title: Text(state.title ?? ""),
        ),
        body: Align(
          child: GestureDetector(
              onTap: () {
                logic.showBottomSheetAction();
              },
              child: Container(
                alignment: Alignment.center,
                decoration: BoxDecoration(
                    borderRadius: BorderRadius.all(Radius.circular(16.w)),
                    color: const Color(0xFFFFF5F6)),
                width: 200.w,
                height: 48.w,
                child: TextWidget("动作列表", TS_FF1D2129_16_W5,
                    textAlign: TextAlign.center),
              )),
        ));
  }
}
